using System;
using System.Collections.Generic;
using System.Text;
using Decav.Transactions;
using System.Web.UI;

namespace Decav.Web
{
    public class WebControlBindingTargetSelector : IBindingTargetSelector
    {
        #region IBindingTargetSelector Members

        public BindingTarget FindTarget(object targetObject, BindingTarget source)
        {
            if (targetObject == null)
                throw new ArgumentNullException("targetObject");

            if (source == null)
                throw new ArgumentNullException("source");

            Control targetCtrl = targetObject as Control;

            if (targetCtrl == null)
                throw new ArgumentException("The target object of a databind using a WebControlBindingTargetSelector must be a System.Web.UI.Control.");

            throw new NotImplementedException();
        }

        #endregion
    }
}
